import axios from "@/assets/request/request";
import { PageReq } from "@/types/page";
import { User } from "@/types/user"

export default {
  collect: (videoId: string, isAdd: boolean) => {
    return axios({
      method: "post",
      url: `/collectFolder/${videoId}/${isAdd}`
    })
  },
  getByUserId: (userId: User["id"], page: PageReq) => {
    return axios({
      method: "get",
      url: `collectFolder/${userId}`,
      params: page
    })
  }
}